<?php
class Silk_Dao_Permission extends FP_Dao_Permission
{

    public function setTableDefinition()
    {
	parent::setTableDefinition();
        $this->setTableName('silk_permission');
    }

    public function setUp()
    {
        $this->hasMany('Silk_Dao_User as Users', array('refClass' => 'Silk_Dao_UserPermission', 'local' => 'permission_id', 'foreign' => 'user_id'));
        $this->hasMany('Silk_Dao_Role as Roles', array('refClass' => 'Silk_Dao_RolePermission', 'local' => 'permission_id', 'foreign' => 'role_id'));
    }


}

 ?>